<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnVersionIdInRepairOrderAffectedTaskTable extends AbstractMigration
{
    public function up()
    {
        $this->table('repair_order_affected_task')
            ->addColumn('repair_done_version_id', 'integer', ['signed' => false, 'default' => 0, 'limit' => 11, 'comment' => '返修完成版本id'])
            ->save();
    }

    public function down()
    {
        $this->table('repair_order_affected_task')
            ->removeColumn('repair_done_version_id')
            ->save();
    }
}
